String::replace = (str1, str2) ->
	ret = ''
	for c in @
		ret += c
		if ret.substring(ret.length - str1.length) == str1
			ret = ret.substring(0, ret.length - str1.length) + str2
	ret


